using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace Banshee.Winforms.Controls
{
    public class CoverArtThumbnail:PictureBox
    {
        int size = 0;
        public CoverArtThumbnail()
        {
            Dock = DockStyle.Fill;
        }
        private string fileName;
        ToolTip tip = new ToolTip();
        public string FileName
        {
            get { return fileName; }
            set { fileName = value;
            this.Width = size;
                if(value != null)
                  Image = System.Drawing.Image.FromFile(value);
                else
                  this.Image = global::Banshee.Base.Properties.Resources.image_missing;
            tip.SetToolTip(this,string.Format("{0}",label));
            }
        }
        private string label;

        public string Label
        {
            get { return label; }
            set { label = value; }
        }
    }
}
